package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.RoutinePathologyTsSj;
import com.zhijian.medical.entity.vo.request.RoutinePathologyTsSjSearchVo;
import com.zhijian.medical.entity.vo.request.RoutinePathologyTsSjSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.response.RoutinePathologyTsSjVo;
import com.zhijian.util.page.Page;

import java.util.List;

/**
 * 常规病例-脱水-试剂列表 业务处理层
 *
 * @author auto
 * @version 1.0
 * @date 2024-07-25 20:04:33
 */
public interface RoutinePathologyTsSjService {

    /**
    * 主键查询
    *
    * @param id
    * @return
    */
    RoutinePathologyTsSj selectById(Long id);

    /**
    * 主键查询vo
    *
    * @param id
    * @return
    */
    RoutinePathologyTsSjVo selectVoById(Long id);

    /**
    * 按照主键删除
    *
    * @param id
    */
    void deleteById(Long id);

    /**
    * 按照主键批量删除
    *
    * @param idList
    */
    void deleteByIdList(List<Long> idList);

    /**
    * 新增
    *
    * @param routinePathologyTsSj
    * @return
    */
    Long insert(RoutinePathologyTsSj routinePathologyTsSj);

    /**
    * 动态新增
    *
    * @param routinePathologyTsSj
    * @return
    */
    Long insertSelective(RoutinePathologyTsSj routinePathologyTsSj);

    /**
    * 更改
    *
    * @param routinePathologyTsSj
    * @return
    */
    boolean update(RoutinePathologyTsSj routinePathologyTsSj);

    /**
    * 动态修改
    *
    * @param record
    * @return
    */
    boolean updateByPrimaryKeySelective(RoutinePathologyTsSj record);

    /**
    * 保存
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean save(RoutinePathologyTsSjSaveOrUpdateVo saveOrUpdateVo);

    /**
    * 编辑
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean modify(RoutinePathologyTsSjSaveOrUpdateVo saveOrUpdateVo);

    /**
    * 列表
    *
    * @param routinePathologyTsSjSearchVo
    * @return
    */
    RoutinePathologyTsSjVo selectOne(RoutinePathologyTsSjSearchVo routinePathologyTsSjSearchVo);

    /**
    * 总数
    *
    * @param routinePathologyTsSjSearchVo
    * @return
    */
    Integer count(RoutinePathologyTsSjSearchVo routinePathologyTsSjSearchVo);

    /**
    * 列表
    *
    * @param routinePathologyTsSjSearchVo
    * @return
    */
    List<RoutinePathologyTsSjVo> selectList(RoutinePathologyTsSjSearchVo routinePathologyTsSjSearchVo);

    /**
    * 分页查询
    *
    * @param routinePathologyTsSjSearchVo
    * @return
    */
    Page<RoutinePathologyTsSjVo> selectPage(RoutinePathologyTsSjSearchVo routinePathologyTsSjSearchVo);

    /**
    * 批量新增数据（MyBatis原生foreach方法）
    *
    * @param entities 实例对象列表
    * @return 影响行数
    */
    boolean insertBatch(List<RoutinePathologyTsSj> entities);

    /**
    * 动态删除，慎重用此方法！！
    *
    * @param routinePathologyTsSjSearchVo
    * @return
    */
    void deleteByCondition(RoutinePathologyTsSjSearchVo routinePathologyTsSjSearchVo);
}